package com.bmps.springcloud.insuredmicroservice.config.redisson;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * description:
 * redis配置
 *
 * @author jackdaw
 * @date 2019-11-28 16:42
 */

//@Configuration
//@ConfigurationProperties(prefix = "spring.redis", ignoreUnknownFields = false)
public class RedisProperties {

    private int timeout;

    private int database;

    private String password;

    private RedisLettuceProperties lettuce;

    private RedisSentinelProperties sentinel;

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public int getDatabase() {
        return database;
    }

    public void setDatabase(int database) {
        this.database = database;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public RedisLettuceProperties getLettuce() {
        return lettuce;
    }

    public void setLettuce(RedisLettuceProperties lettuce) {
        this.lettuce = lettuce;
    }

    public RedisSentinelProperties getSentinel() {
        return sentinel;
    }

    public void setSentinel(RedisSentinelProperties sentinel) {
        this.sentinel = sentinel;
    }
}
